﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FeiShuiJK.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.ZhangWuGL.FeiShuiJK" Theme="Default" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <script>
        //function SCSJ() {
        //    if (txtZhangWuNY.GetText() == "") {
        //        alert("账务年月为空，请输入");
        //        txtZhangWuNY.Focus();
        //    }
        //    else {
        //        ASPxCallback1.PerformCallback("scsj");
        //    }

        //}

        ////生成文件
        //function SCSCWJ() {
        //    if (gvWeiShangC.GetFocusedRowIndex() != -1) {
        //        hdCollection.Set("ID", gvWeiShangC.GetRowKey(gvWeiShangC.GetFocusedRowIndex()));
        //        ASPxCallback1.PerformCallback("scwj");
        //    }
        //    else {
        //        alert("请选择需要取消的文件");
        //    }
        //}

        ////取消生成文件
        //function QXSCWJ() {

        //    if (gvYiShangC.GetFocusedRowIndex() != -1) {
        //        hdCollection.Set("ID", gvYiShangC.GetRowKey(gvYiShangC.GetFocusedRowIndex()));
        //        ASPxCallback1.PerformCallback("qswj");
        //    }
        //    else {
        //        alert("请选择需要取消的文件");
        //    }

        //}

        //function ASPxCallback1Complete(rs) {
        //    var arr = rs.split('|');
        //    var type = arr[0];
        //    var state = arr[1];
        //    if (type == "scsj") {
        //        if (arr[2] == "1") {
        //            alert("此帐务年月已经上传,不允许重新生成数据");
        //        }
        //        else if (arr[2] == "0") {
        //            if (confirm("已生成过数据, 是否要重新生成数据?")) {
        //                alert("shiyaoshengcheng");
        //                ASPxCallback1.PerformCallback("scsj2");
        //            }
        //            else {
        //                alert("busheng");
        //            }
        //        }
        //    }
        //    else if (type == "scsj2") {
        //        if (arr[2] == "0") {
        //            alert("生成数据成功！");
        //        }
        //        else if (arr[2] == "1") {
        //            alert("没有可生成的数据");
        //        }
        //        else if (arr[2] == "2") {
        //            alert("有发票为空的到帐信息");
        //        }

        //    }
        //    //else if (type == "scwj") {
        //    //    if (arr[2] == "0") {
        //    //        alert("取消成功！");
        //    //        gvWeiShangC.PerformCallback();
        //    //        gvYiShangC.PerformCallback();
        //    //    }
        //    //    else {
        //    //        alert("取消失败！");
        //    //    }
        //    //}
        //    //else if (type == "qswj") {

        //    //}

        //}

        function CKKFP() {
            openCenter("FeiShuiJK2.aspx", "400px", "400px");
        }
    </script>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="tabletitle1" align="center">
        非税接口
    </div>
    <%-- <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
        <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        --%>
    <asp:UpdatePanel ID="updatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div>
                    <table style="text-align: left; width: 100%;">
                        <tr>
                            <td style="width: 65px">
                                <span style="font-size: 12px;">账务年月：</span>
                            </td>
                            <td style="width: 200px">
                                <dx:ASPxTextBox ID="txtZhangWuNY" Width="60%" runat="server" Enabled="true">
                                </dx:ASPxTextBox>
                            </td>
                            <td >
                                <dx:ASPxButton ID="btnShengChengSJ" ClientInstanceName="btnShengChengSJ" runat="server" Text="生成数据" OnClick="btnShengChengSJ_Click">
                                    <%--<ClientSideEvents Click="function(s,e){SCSJ();}" />--%>
                                </dx:ASPxButton>
                            </td>
                            <td >

                                <dx:ASPxButton ID="btnShengChengWJ" ClientInstanceName="btnShengChengWJ" runat="server" Text="生成文件" OnClick="btnShengChengWJ_Click">
                                    <%--<ClientSideEvents Click="function(s,e){SCSCWJ();}" />--%>
                                </dx:ASPxButton>
                            </td>
                            <td >
                                <dx:ASPxButton ID="btnQuXiaoWJ" ClientInstanceName="btnQuXiaoWJ" runat="server" Text="取消文件" OnClick="btnQuXiaoWJ_Click">
                                    <%--<ClientSideEvents Click="function(s,e){QXSCWJ();}" />--%>
                                </dx:ASPxButton>
                            </td>
                            <%-- <td>
                                    <dx:ASPxButton ID="btnCKKFP" ClientInstanceName="btnCKKFP" runat="server" Text="查看是否有空发票">
                                        <ClientSideEvents Click="function(s,e){CKKFP();}" />
                                    </dx:ASPxButton> 
                                </td>--%>
                        </tr>
                    </table>
                </div>
                <hr/>
                <div style="width: 100%;">
                    <div style="float: left; width: 50%;">
                        <fieldset>
                            <%--style="border: 1px solid #a3c0e8;"--%>
                            <legend>未上传</legend>
                            <dx:ASPxGridView ID="gvWeiShangC" ClientInstanceName="gvWeiShangC" runat="server" AutoGenerateColumns="False" KeyFieldName="I_BIANHAO" Theme="Aqua1"
                                             Width="100%">
                                <Columns>
                                    <dx:GridViewDataTextColumn FieldName="I_BIANHAO" Caption="编号" Width="10%">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_ZWYM" Caption="账务年月" Width="30%">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_WENJIANMC" Caption="文件名" Width="60%">
                                    </dx:GridViewDataTextColumn>

                                </Columns>
                                <Settings VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="400"/>
                            </dx:ASPxGridView>
                        </fieldset>
                    </div>
                    <div style="float: right; width: 50%;">
                        <fieldset>
                            <legend>已上传</legend>
                            <dx:ASPxGridView ID="gvYiShangC" ClientInstanceName="gvYiShangC" runat="server" AutoGenerateColumns="False" KeyFieldName="I_BIANHAO" Theme="Aqua1"
                                             Width="100%">
                                <Columns>
                                    <dx:GridViewDataTextColumn FieldName="I_BIANHAO" Caption="编号" Width="10%">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_ZWYM" Caption="账务年月" Width="30%">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_WENJIANMC" Caption="文件名" Width="60%">
                                    </dx:GridViewDataTextColumn>

                                </Columns>
                                <Settings VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="400"/>
                            </dx:ASPxGridView>
                        </fieldset>
                    </div>

                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</form>
</body>
</html>